﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/POS.master" CodeFile="CreateNewUser.aspx.cs" Inherits="HR_CreateNewUser" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        textarea {
            resize: none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container">
        <div class="main-title">
            <label class="control-label" for="Title">Create New User</label>
        </div>
        <div class="form-horizontal" id="divuserWrapper">
            <div class="form-group">
                <label class="control-label col-sm-4" for="Phone">Select Employee  :</label>
                <div class="col-sm-6">
                    <asp:DropDownList type="text" id="ddl_employee" DataValueField="EmpID" DataTextField="EmpName"  class="form-control" runat="server"  />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Person">User Name :</label>
                <div class="col-sm-6">
                    <asp:TextBox  id="txtUserName" class="form-control" required="required" runat="server" placeholder="User Name" />
                    <asp:RequiredFieldValidator ErrorMessage="Enter User Name" ControlToValidate="txtUserName" ForeColor="Red" runat="server" />
                </div>
            </div>
           
            <div class="form-group">
                <label class="control-label col-sm-4" for="Cell">Password :</label>
                <div class="col-sm-6">
                    
                    <asp:TextBox  id="txtPassword" class="form-control" TextMode="Password" onkeyup="passwordChanged();" required="required" runat="server" placeholder="Password"
                          width="99%" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="City">Confirm Password :</label>
                <div class="col-sm-6">
                    <asp:TextBox TextMode="Password" id="txtConfirmPassword" class="form-control" onkeyup="passwordChanged();" required="required" runat="server" placeholder="Confirm Password"
                         width="99%" />
                    <asp:CompareValidator ErrorMessage="Not Matched" ControlToCompare="txtConfirmPassword" ControlToValidate="txtPassword" runat="server" />
                    <span id='message'></span>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Address">Expiry :</label>
                <div class="col-sm-6">
                    <asp:DropDownList ID="DDL_Expiry" CssClass="form-control"  runat="server">
                        <asp:ListItem Text="30 Days" Value="30" />
                        <asp:ListItem Text="3 Months" Value="90" />
                        <asp:ListItem Text="6 Months" Value="180" />
                        <asp:ListItem Text="Never" Value="900000" />
                    </asp:DropDownList>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-8">
                    <asp:Button runat="server"   id="btnCreateUser" Cssclass="btn btn-success" Text="Save" onclick="btnCreateUser_Click" />
                   
                </div>
            </div>
        </div>
    </div>
    <script src='<%= ResolveUrl("Employee.js") %>'></script>
</asp:Content>

